package org.nicocube.airain.utils;

import org.mockito.ArgumentMatcher;

public class And<T> extends ArgumentMatcher<T> {
	private ArgumentMatcher<T> a;
	private ArgumentMatcher<T> b;
	public And(ArgumentMatcher<T> a, ArgumentMatcher<T> b) {
		this.a = a;
		this.b = b;
	}
	@Override
	public boolean matches(Object argument) {
		return a.matches(argument) && b.matches(argument);
	}
}